#!/usr/bin/env python
# _*_ coding: utf-8 _*_
# @Time : 2025-03-13 17:33
# @Author : fanzf
# @Version：V 0.1
# @File : config.py
# @desc :


import os


class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'your_secret_key'
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or 'sqlite:///site.db'
    SQLALCHEMY_TRACK_MODIFICATIONS = False


class DevelopmentConfig(Config):
    DEBUG = True
    REDIS_URL = "redis://127.0.0.1:6379/0"


class ProductionConfig(Config):
    DEBUG = False
    REDIS_URL = "redis://myredis:6379/0"

